
/*
 * Copyright 2008 Friendster Inc.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 
 
 * Unless required by applicable law or agreed to in writing, 
 * software distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and limitations under the License.
*/

using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;

namespace Friendster.Service
{
    /// <summary>
    /// Represents the school information of a user
    /// </summary>
    public sealed class School
    {
        Hashtable school = new Hashtable();

        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="school"></param>
        internal School(Hashtable school)
        {
            this.school = school;
        }

        /// <summary>
        /// Returns the region data of a school.
        /// </summary>
        public string Region
        {
            get
            {
                return (String)school["region"];
            }
        }
        /// <summary>
        /// Returns the school name
        /// </summary>
        public string Name
        {
            get
            {
                return (String)school["name"];
            }
        }
        /// <summary>
        /// Returns the year, when a user joined the school.
        /// </summary>
        public string YearStart
        {
            get
            {
                return (String)school["year_start"];
            }
        }
        /// <summary>
        /// Returns the country name of school.
        /// </summary>
        public string Country
        {
            get
            {
                return (String)school["country"];
            }
        }
        /// <summary>
        /// Returns the major subjects that user taken on the school.
        /// </summary>
        public string Major
        {
            get
            {
                return (String)school["major"];
            }
        }
        /// <summary>
        /// Returns the year, when a user left the school.
        /// </summary>
        public string YearEnd
        {
            get
            {
                return (String)school["year_end"];
            }
        }
        /// <summary>
        /// Returns the city name of school.
        /// </summary>
        public string City
        {
            get
            {
                return (String)school["city"];
            }
        }
        /// <summary>
        /// Returns the name of degree that the user taken in school.
        /// </summary>
        public string Degree
        {
            get
            {
                return (String)school["degree"];
            }
        }
        /// <summary>
        /// Returns the name of course that the user taken in school.
        /// </summary>
        public string Course
        {
            get
            {
                return (String)school["course"];
            }
        }

    }
}
